/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1637289159778_7072';

  // add your middleware config here
  config.middleware = ["cors"]

  config.text={
    match:'/music',
    title:"我是吴樟爸爸"
  }
  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };
  /* start 配置numjucks */
  config.view = {
    defaultViewEngine: 'nunjucks',
    mapping: {
      '.html': 'nunjucks',
    },
  };

  
  // 配置安全地址
  config.security={
    csrf:{
      enable:false
    }
  }
  config.mongodb = {
    app:true,
    agent:false,
    client:{
      hosts:'121.36.200.5:12021',
      db:"Student"
    }
   
  }
  /* end */
  return {
    ...config,
    ...userConfig,
  };
};
